package com.toy.abash.domain;

import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import com.toy.core.domain.BaseObject;

/**
 * 对糗事顶或者压
 */
@Document(collection="T_UPORDOWN")
public class UpOrDown implements BaseObject{
	
	private static final long serialVersionUID = -1292999856574966276L;
	@Id
	private long id;
	@Indexed
	private long abashId;
	@Indexed
	private long operatorId; //操作人
	private boolean toUp;  //我顶
	private boolean toDown; //我操
	private Date optDate; //点击时间
	
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public boolean isToUp() {
		return toUp;
	}

	public void setToUp(boolean toUp) {
		this.toUp = toUp;
	}

	public boolean isToDown() {
		return toDown;
	}

	public void setToDown(boolean toDown) {
		this.toDown = toDown;
	}

	public Date getOptDate() {
		return optDate;
	}

	public void setOptDate(Date optDate) {
		this.optDate = optDate;
	}

	public long getAbashId() {
		return abashId;
	}

	public void setAbashId(long abashId) {
		this.abashId = abashId;
	}

	public long getOperatorId() {
		return operatorId;
	}

	public void setOperatorId(long operatorId) {
		this.operatorId = operatorId;
	}
	
}
